import { createRouter, createWebHistory } from "vue-router";
import BillMain from "../views/BillMain.vue";
import Analysis from "../views/Analysis.vue"
import Setting from "../views/Setting.vue"
import About from "../views/About.vue"


const routes = [
  {
    path: "/",
    redirect: '/billMain'
  },
  {
    path: "/billMain",
    name: "BillMain",
    component: BillMain,
  },
  {
    path: "/analysis",
    name: "Analysis",
    component: Analysis,
  },
  {
    path: "/setting",
    name: "Setting",
    component: Setting,
  },
  {
    path: "/about",
    name: "About",
    component: About,
  }
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
